Skip to content

feat: add CAMB AI integration (translation, TTS, voice cloning)#6537

Open
neilruaro-camb wants to merge 1 commit intolabring:mainfrom
neilruaro-camb:feat/camb-ai-integration
Open

feat: add CAMB AI integration (translation, TTS, voice cloning)#6537
neilruaro-camb wants to merge 1 commit intolabring:mainfrom
neilruaro-camb:feat/camb-ai-integration

Conversation

@neilruaro-camb
Copy link

Summary

  • Add CAMB AI as a third-party provider
  • Three new workflow nodes: Translation, Voice Clone, Translated TTS
  • TTS streaming support for direct audio generation
  • 140+ language support via CAMB language codes
  • Comprehensive test suite (24 tests, unit + integration)

New Workflow Nodes

  1. CAMB Translation — Translate text between 140+ languages
  2. CAMB Voice Clone — Create custom voices from reference audio
  3. CAMB Translated TTS — Translate text and synthesize speech in one step

Files Changed

Modified (7)

  • packages/global/core/workflow/constants.ts — CAMB input/output key enums
  • packages/global/core/workflow/node/constant.ts — CAMB FlowNodeTypeEnum entries
  • packages/global/core/workflow/template/constants.ts — Register CAMB node templates
  • packages/service/core/workflow/dispatch/constants.ts — Register CAMB dispatch handlers
  • packages/web/i18n/en/workflow.json — English i18n
  • packages/web/i18n/zh-CN/workflow.json — Chinese Simplified i18n
  • packages/web/i18n/zh-Hant/workflow.json — Chinese Traditional i18n

New (10)

  • packages/global/core/workflow/template/system/cambTranslation.ts
  • packages/global/core/workflow/template/system/cambVoiceClone.ts
  • packages/global/core/workflow/template/system/cambTranslatedTTS.ts
  • packages/service/core/workflow/dispatch/tools/cambTranslation.ts
  • packages/service/core/workflow/dispatch/tools/cambVoiceClone.ts
  • packages/service/core/workflow/dispatch/tools/cambTranslatedTTS.ts
  • packages/service/thirdProvider/cambAi/index.ts
  • packages/service/thirdProvider/cambAi/types.ts
  • packages/service/thirdProvider/cambAi/languages.ts
  • test/cases/service/thirdProvider/cambAi.test.ts

Configuration

Set CAMB_API_KEY environment variable. Get an API key at https://camb.ai

Test Plan

  • 24 unit/integration tests pass (npx vitest run test/cases/service/thirdProvider/cambAi.test.ts)
  • Integration tests skip gracefully without CAMB_API_KEY
  • Lint passes (pnpm lint)
  • TypeScript compilation passes
  • Pre-commit hooks pass (format + lint)

@cla-assistant
Copy link

cla-assistant bot commented Mar 10, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Preview sandbox Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_sandbox_4a754d853eeb62d06d5e475d684754e87b6ff3cd

@github-actions
Copy link

Preview mcp_server Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_mcp_server_4a754d853eeb62d06d5e475d684754e87b6ff3cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant